(function($,h){
	"use strict";
	var page = {
		method:{
			'getList':{
				url:"/index.php/dashboard/getList"
			}
		},
		oninit:function(){
			//this.getList();
			$("#addWxAccout").on("click",$.proxy(this,"onAddWxAccount"));
		},
		getList:function(){
			console.log("get data from ajax");
			console.log(this.method.getList.url);
			$.ajax({
				url:this.method.getList.url,
				success:function(data){
					var ret = $.parseJSON(data);
					$.each(ret,function(k,v){
						console.log(k+'-------------'+v);
					})
				}

			});
		},
		onAddWxAccount:function(){
			alert("添加账号");
		}
	}
	page.oninit();
})(jQuery,h);